package com.example.demo.finitestatemachine.event;

import java.util.Map;

/**
 * @author liyuncong
 * @version 1.0
 * @file LiftEvent
 * @brief LiftEvent
 * @details LiftEvent
 * @date 2022-12-28
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-12-28                  liyuncong          Created
 */
public class LiftEvent {

    private final LiftEventCodeEnums eventCode;

    private Map<Object, Object> attributes = null;

    public LiftEvent(LiftEventCodeEnums eventCode) {
        this.eventCode = eventCode;
    }

    public LiftEvent(LiftEventCodeEnums eventCode, Map<Object, Object> attributes) {
        this.eventCode = eventCode;
        this.attributes = attributes;
    }

    public LiftEventCodeEnums getEventCode() {
        return eventCode;
    }

    public Map<Object, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<Object, Object> attributes) {
        this.attributes = attributes;
    }
}
